package main

import (
	"github.com/labstack/echo/v4"
	"net/http"
	"time"
)

// main
//
//	@Description: 使用Echo#StartServer() 进行自定义 Server 的启动
func main() {
	e := echo.New()
	s := &http.Server{
		Addr:         ":8080",
		Handler:      http.FileServer(http.Dir("./public")),
		ReadTimeout:  10 * time.Minute,
		WriteTimeout: 10 * time.Minute,
	}
	e.HideBanner = true // 隐藏启动横幅
	e.Logger.Fatal(e.StartServer(s))
}
